<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<table>
	<tr><td><a href="add.jsp">新增</a></td></tr>
	<tr>
		
		<td>nid</td>
		<td>title</td>
		<td>context</td>
		<td>pubtime</td>
		<td>type</td>
		<td>uname</td>
	</tr>
	<c:forEach items="${list}" var="l"> 
		<tr>
		<td>${l.nid }</td>
		<td>${l.title }</td>
		<td>${l.context }</td>
		<td>${l.pubtime }</td>
		<td>${l.type }</td>
		<td>${l.user.uname}</td>
		<td><a href="NewsAction_delete?nid=${l.nid}">删除</a></td>
	</tr>
	</c:forEach>
	
</table>
</body>
</html>